Skip to content

feat(kms-connector): retrieve s3 url in extra_data#812

Closed
eudelins-zama wants to merge 5 commits intofeat/coprocessor_contexts_in_gatewayfrom
simon/feat/404/s3-url-without-gateway
Closed

feat(kms-connector): retrieve s3 url in extra_data#812
eudelins-zama wants to merge 5 commits intofeat/coprocessor_contexts_in_gatewayfrom
simon/feat/404/s3-url-without-gateway

Conversation

@eudelins-zama
Copy link
Copy Markdown
Contributor

@cla-bot cla-bot bot added the cla-signed label Sep 2, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the KMS connector to retrieve S3 URLs from extra_data instead of querying the GatewayConfig contract. The main change involves replacing the coprocessor address-based S3 URL lookup with direct URL extraction from request metadata.

  • Removes dependency on GatewayConfig contract for S3 URL retrieval
  • Implements S3 URL matrix decoding from extra_data field
  • Removes coprocessor address tracking from SNS ciphertext materials

Reviewed Changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
kms-connector/simple-connector/Cargo.toml Updates dashmap dependency specification
kms-connector/crates/utils/src/types/db.rs Removes coprocessor address field from database types
kms-connector/crates/utils/src/tests/rand.rs Updates test data generation to exclude coprocessor addresses
kms-connector/crates/kms-worker/tests/s3.rs Simplifies S3Service instantiation by removing provider dependency
kms-connector/crates/kms-worker/src/core/kms_worker.rs Updates type signatures to remove provider generic
kms-connector/crates/kms-worker/src/core/event_processor/s3.rs Major refactor replacing contract-based URL lookup with extra_data parsing
kms-connector/crates/kms-worker/src/core/event_processor/processor.rs Removes provider generic from processor types
kms-connector/crates/kms-worker/src/core/event_processor/decryption.rs Implements S3 URL matrix decoding and adds corresponding tests
kms-connector/crates/kms-worker/Cargo.toml Removes dashmap dependency
kms-connector/connector-db/migrations/20250902144114_update_sns_ciphertext.sql Database migration to remove coprocessor address column
kms-connector/Cargo.toml Updates fhevm_gateway_bindings revision and removes dashmap dependency
Comments suppressed due to low confidence (1)

kms-connector/crates/kms-worker/src/core/event_processor/decryption.rs:1

  • This extremely long hex string constant should be split into multiple lines or stored in a separate test data file for better readability and maintainability.
use crate::core::{

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@eudelins-zama eudelins-zama force-pushed the simon/feat/404/s3-url-without-gateway branch from b38f7da to c67662a Compare September 2, 2025 16:52
@eudelins-zama eudelins-zama marked this pull request as ready for review September 2, 2025 16:59
@eudelins-zama eudelins-zama marked this pull request as draft September 2, 2025 17:02
@eudelins-zama eudelins-zama marked this pull request as ready for review September 3, 2025 09:09
@eudelins-zama eudelins-zama force-pushed the simon/feat/404/s3-url-without-gateway branch from 4cd7fa9 to 9897f9c Compare September 3, 2025 10:12
Copy link
Copy Markdown
Contributor

@melanciani melanciani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks !

@eudelins-zama eudelins-zama force-pushed the simon/feat/404/s3-url-without-gateway branch 3 times, most recently from 172ca75 to 780febc Compare September 12, 2025 11:59
Copy link
Copy Markdown
Contributor

@melanciani melanciani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small change: storage urls are no longer in extraData and can be found as a new field in the request event

@eudelins-zama eudelins-zama force-pushed the simon/feat/404/s3-url-without-gateway branch from 780febc to d04ee84 Compare September 23, 2025 15:29
@eudelins-zama
Copy link
Copy Markdown
Contributor Author

Should be good now @RomanBredehoft (cc @dartdart26)

Copy link
Copy Markdown
Contributor

@melanciani melanciani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me !

dartdart26 and others added 5 commits September 25, 2025 17:59
Add support for a separate uin256 context ID in the event listened to
by the gw-listener and using it to sign a `CiphertextVerification` in
transaction-sender.

Related to #211
chore(kms-connector): update mock contract address

chore(kms-connector): remove gw conn from kms-worker

chore(kms-connector): update extra_data encoding

fix(kms-connector): fix kms-worker health tests

chore(kms-connector): adapt storage urls retrieval

chore(kms-connector): s3 urls edge case handling
@eudelins-zama eudelins-zama force-pushed the simon/feat/404/s3-url-without-gateway branch from aaea886 to 92f278a Compare October 9, 2025 08:45
@dartdart26 dartdart26 force-pushed the feat/coprocessor_contexts_in_gateway branch from 29b4ec8 to 0bb20fb Compare October 9, 2025 15:33
@melanciani melanciani force-pushed the feat/coprocessor_contexts_in_gateway branch from 0bb20fb to 390c08a Compare October 9, 2025 15:52
@eudelins-zama
Copy link
Copy Markdown
Contributor Author

Closing, no longer wanted

@eudelins-zama eudelins-zama deleted the simon/feat/404/s3-url-without-gateway branch January 23, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants